import { createApp } from 'vue'
import {setupRouter,router} from '@/router';
import {setupStore} from '@/store';
import { setupGlobDirectives } from '@/directives';

import App from '../App.vue'


async function bootstrap() {
    const app = createApp(App);
    //  routing
    setupRouter(app);
    setupStore(app);


   // 全局过滤器
   setupGlobDirectives(app);


   // 路由加载完毕
   // https://next.router.vuejs.org/api/#isready
   await router.isReady();

    app.mount('#app');
}

void bootstrap();







